package cn.zhangxin.pethome.system.pet.service;

import cn.zhangxin.pethome.base.query.BaseQuery;
import cn.zhangxin.pethome.system.pet.domain.Pet;
import cn.zhangxin.pethome.base.service.IBaseService;
import cn.zhangxin.pethome.system.pet.query.PetQuery;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zx
 * @since 2023-02-06
 */
public interface IPetService extends IBaseService<Pet> {
    void add(Pet pet, HttpServletRequest request);
    //查询自己店铺有的
    List<Pet> findByQuery(PetQuery PetQuery, HttpServletRequest request);
    Long findByQueryCount(PetQuery PetQuery, HttpServletRequest request);
    //上架
    void onsale(List<Long> ids, HttpServletRequest request);
    //下架
    void offsale(List<Long> ids, HttpServletRequest request);
}
